<html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Hammerspoon docs: WindowScreenLeftAndRight</title>
    <style type="text/css">
      a { text-decoration: none; }
      a:hover { text-decoration: underline; }
      th { background-color: #DDDDDD; vertical-align: top; padding: 3px; }
      td { width: 100%; background-color: #EEEEEE; vertical-align: top; padding: 3px; }
      table { width: 100% ; border: 1px solid #0; text-align: left; }
      section > table table td { width: 0; }
    </style>
    <link rel="stylesheet" href="docs.css" type="text/css" media="screen" />
  </head>
  <body>
    <header>
      <h1><a href="./index.html">docs</a> &raquo; WindowScreenLeftAndRight</h1>
      <p>Move windows to other screens</p>
<p>Download: <a href="https://github.com/Hammerspoon/Spoons/raw/master/Spoons/WindowScreenLeftAndRight.spoon.zip">https://github.com/Hammerspoon/Spoons/raw/master/Spoons/WindowScreenLeftAndRight.spoon.zip</a></p>

      </header>
      <h3>API Overview</h3>
      <ul>
        <li>Variables - Configurable values</li>
          <ul>
            <li><a href="#animationDuration">animationDuration</a></li>
            <li><a href="#defaultHotkeys">defaultHotkeys</a></li>
            <li><a href="#logger">logger</a></li>
          </ul>
        <li>Methods - API calls which can only be made on an object returned by a constructor</li>
          <ul>
            <li><a href="#bindHotkeys">bindHotkeys</a></li>
          </ul>
      </ul>
      <h3>API Documentation</h3>
        <h4 class="documentation-section">Variables</h4>
          <section id="animationDuration">
            <a name="//apple_ref/cpp/Variable/animationDuration" class="dashAnchor"></a>
            <h5><a href="#animationDuration">animationDuration</a></h5>
            <table>
              <tr>
                <th>Signature</th>
                <td><code>WindowScreenLeftAndRight.animationDuration</code></td>
              </tr>
              <tr>
                <th>Type</th>
                <td>Variable</td>
              </tr>
              <tr>
                <th>Description</th>
                <td><p>Length of the animation to use for the window movements across the
screens. <code>nil</code> means to use the existing value from
<code>hs.window.animationDuration</code>. 0 means to disable the
animations. Default: <code>nil</code>.</p>
</td>
              </tr>
            </table>
          </section>
          <section id="defaultHotkeys">
            <a name="//apple_ref/cpp/Variable/defaultHotkeys" class="dashAnchor"></a>
            <h5><a href="#defaultHotkeys">defaultHotkeys</a></h5>
            <table>
              <tr>
                <th>Signature</th>
                <td><code>WindowScreenLeftAndRight.defaultHotkeys</code></td>
              </tr>
              <tr>
                <th>Type</th>
                <td>Variable</td>
              </tr>
              <tr>
                <th>Description</th>
                <td><p>Table containing a sample set of hotkeys that can be
assigned to the different operations. These are not bound
by default - if you want to use them you have to call:
<code>spoon.WindowScreenLeftAndRight:bindHotkeys(spoon.WindowScreenLeftAndRight.defaultHotkeys)</code>
after loading the spoon. Value:</p>

<pre><code> {
    screen_left = { {"ctrl", "alt", "cmd"}, "Left" },
    screen_right= { {"ctrl", "alt", "cmd"}, "Right" },
 }</code></pre>
</td>
              </tr>
            </table>
          </section>
          <section id="logger">
            <a name="//apple_ref/cpp/Variable/logger" class="dashAnchor"></a>
            <h5><a href="#logger">logger</a></h5>
            <table>
              <tr>
                <th>Signature</th>
                <td><code>WindowScreenLeftAndRight.logger</code></td>
              </tr>
              <tr>
                <th>Type</th>
                <td>Variable</td>
              </tr>
              <tr>
                <th>Description</th>
                <td><p>Logger object used within the Spoon. Can be accessed to set the default log level for the messages coming from the Spoon.</p>
</td>
              </tr>
            </table>
          </section>
        <h4 class="documentation-section">Methods</h4>
          <section id="bindHotkeys">
            <a name="//apple_ref/cpp/Method/bindHotkeys" class="dashAnchor"></a>
            <h5><a href="#bindHotkeys">bindHotkeys</a></h5>
            <table>
              <tr>
                <th>Signature</th>
                <td><code>WindowScreenLeftAndRight:bindHotkeys(mapping)</code></td>
              </tr>
              <tr>
                <th>Type</th>
                <td>Method</td>
              </tr>
              <tr>
                <th>Description</th>
                <td><p>Binds hotkeys for WindowScreenLeftAndRight</p>
<p>Parameters:</p>
<ul>
<li>mapping - A table containing hotkey objifier/key details for the following items:<ul>
<li>screen_left, screen_right - move the window to the left/right screen (if you have more than one monitor connected, does nothing otherwise)</li>
</ul>
</li>
</ul>
</td>
              </tr>
            </table>
          </section>
  </body>
</html>